package com.yicong.ants.bean.account;

import com.yicong.ants.bean.me.UserIncome;

/**
 * @author cchao
 * @version 2019-05-24.
 */
public class UserBonus {
    UserBean user_info;
    UserIncome income_info;

    public UserBonus() {
    }

    public UserBean getUser_info() {
        return this.user_info;
    }

    public UserIncome getIncome_info() {
        return this.income_info;
    }

    public void setUser_info(UserBean user_info) {
        this.user_info = user_info;
    }

    public void setIncome_info(UserIncome income_info) {
        this.income_info = income_info;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof UserBonus)) return false;
        final UserBonus other = (UserBonus) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$user_info = this.getUser_info();
        final Object other$user_info = other.getUser_info();
        if (this$user_info == null ? other$user_info != null : !this$user_info.equals(other$user_info))
            return false;
        final Object this$income_info = this.getIncome_info();
        final Object other$income_info = other.getIncome_info();
        if (this$income_info == null ? other$income_info != null : !this$income_info.equals(other$income_info))
            return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof UserBonus;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $user_info = this.getUser_info();
        result = result * PRIME + ($user_info == null ? 43 : $user_info.hashCode());
        final Object $income_info = this.getIncome_info();
        result = result * PRIME + ($income_info == null ? 43 : $income_info.hashCode());
        return result;
    }

    public String toString() {
        return "UserBonus(user_info=" + this.getUser_info() + ", income_info=" + this.getIncome_info() + ")";
    }
}
